package io.framework.modules.water.dao;

import io.framework.common.dao.BaseDao;
import io.framework.modules.water.entity.WaterEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 饮用水源地/检测断面 水质类别表
 *
 * @author Gujq email
 * @since 1.0.0 2020-05-22
 */
@Mapper
public interface WaterDao extends BaseDao<WaterEntity> {

    Map<String, String> getCreateDate(@Param("waterType") Integer waterType);

    List<Map<String, Object>> getWaterRateInfo(Map<String, Object> params);

    List<Map<String, Object>> getWaterRate(Map<String, Object> params);

    WaterEntity getWaterInfoByStationId(Map<String, Object> params);

    Integer checkData(@Param("type") Integer type, @Param("year") String year);

    int deleteInfoByDate(@Param("type") Integer type, @Param("year") String year);

    Integer countGroupByStationId(Map<String, Object> params);

    List<Long> getStationIds(Map<String, Object> params);

    List<WaterEntity> listByMapAndStationIds(Map<String, Object> params);

}
